package com.iv.durian.cloud.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

@Data
@Builder
@ApiModel("横幅对象")
public class BannerVO {
    @ApiModelProperty(value="横幅ID")
    private Integer id;
    @ApiModelProperty(value="横幅封面")
    private String image;
    @ApiModelProperty(value="跳转地址")
    private String url;
    @ApiModelProperty(value="0-首页 1-课程")
    private int type;
    @ApiModelProperty(value="0-维护 1-上线")
    private int status;
    @ApiModelProperty(value="横幅建立时间")
    @JsonProperty("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value="横幅记录最后更新时间")
    @JsonProperty("update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
